package com.study.mybatis.bean;

import java.io.Serializable;
import java.util.List;

public class Person implements Serializable {
    public Integer personId;
    public String personName;
    public Integer personAge;
    public Boolean isMan;
    public PersonMSG personMSG;
    public List<PersonMSG> personMSGS;
    public List<PersonMSG> personMSGS2;

    public List<PersonMSG> getPersonMSGS2() {
        return personMSGS2;
    }

    public void setPersonMSGS2(List<PersonMSG> personMSGS2) {
        this.personMSGS2 = personMSGS2;
    }

    public List<PersonMSG> getPersonMSGS() {
        return personMSGS;
    }

    public void setPersonMSGS(List<PersonMSG> personMSGS) {
        this.personMSGS = personMSGS;
    }

    public Person() {
    }
    public Person(Integer personId, Integer personAge) {
        //System.out.println("Person----constructor");
        this.personId = personId;
        this.personAge = personAge;
    }

    public PersonMSG getPersonMSG() {
        return personMSG;
    }

    public void setPersonMSG(PersonMSG personMSG) {
        this.personMSG = personMSG;
    }

    public Integer getPersonId() {
        return personId;
    }

    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public Integer getPersonAge() {
        return personAge;
    }

    public void setPersonAge(Integer personAge) {
        this.personAge = personAge;
    }

    public Boolean getMan() {
        return isMan;
    }

    public void setMan(Boolean man) {
        isMan = man;
    }

    @Override
    public String toString() {
        return "Person{" +
                "personId=" + personId +
                ", personName='" + personName + '\'' +
                ", personAge=" + personAge +
                ", isMan=" + isMan +
                ", personMSG=" + personMSG +
                ", personMSGS=" + personMSGS +
                ", personMSGS2=" + personMSGS2 +
                '}';
    }
}